import request from '@/utils/request.js'
import api from './apis.js'

export function getSwiper () {
	return request(api.SwiperList, 'GET')
}

export function getWorkState () {
	return request(`${api.WorkState}`, 'GET')
}

export function getWorkLine () {
	return request(api.WorkStateLine, 'GET')
}

export function getWorkPie () {
	return request(api.WorkStatePie, 'GET')
}

export function getAlertCount () {
	return request(api.GetAlertCount, 'GET')
}

export function postRead (id) {
	return request(`${api.UpdateRead}/${id}`, 'POST')
}
